﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Data.SqlClient;

namespace db_proto
{
    public partial class grid : Form
    {
        
        
        public grid()
        {
            InitializeComponent();
            
            
        }

        public void setDatasource(DataSet ds)
        {
            dataGridView1.DataSource = ds.Tables[0];
            
            dataGridView1.Refresh();
        }
    }
}
